package phapp.model.data;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;

/**
 * Title: t_constellation_data 数据类 POJO Description: DAO层映射到数据类,页面封装数据映射到数据类
 * Copyright: Copyright (c) 2012-10 Company:
 * 
 * @author you name
 * @version 1.0
 */

public class Constellation extends BaseEntity
{

   // date formats

   // columns START
   /** dataId */
   private java.lang.Integer dataId;
   /** constellationName */
   private java.lang.String constellationName;
   /** beginDate */
   private java.lang.String beginDate;
   /** endDate */
   private java.lang.String endDate;

   private java.util.ArrayList idList;

   // columns END

   public Constellation()
   {
   }

   public Constellation(java.lang.Integer dataId)
   {
      this.dataId = dataId;
   }

   public void setId(java.lang.Integer value)
   {
      this.dataId = value;
   }

   public java.lang.Integer getId()
   {
      return this.dataId;
   }
   
   public void setDataId(java.lang.Integer value)
   {
      this.dataId = value;
   }

   public java.lang.Integer getDataId()
   {
      return this.dataId;
   }

   public void setConstellationName(java.lang.String value)
   {
      this.constellationName = value;
   }

   public java.lang.String getConstellationName()
   {
      return this.constellationName;
   }

   public void setBeginDate(java.lang.String value)
   {
      this.beginDate = value;
   }

   public java.lang.String getBeginDate()
   {
      return this.beginDate;
   }

   public void setEndDate(java.lang.String value)
   {
      this.endDate = value;
   }

   public java.lang.String getEndDate()
   {
      return this.endDate;
   }

   public java.util.ArrayList getIdList()
   {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList)
   {
      this.idList = idList;
   }

   /** 手动增加属性后,toString,hashCode,equals都要修改 */
   public String toString()
   {
      return new ToStringBuilder(this).append("DataId", getDataId()).append("ConstellationName", getConstellationName())
               .append("BeginDate", getBeginDate()).append("EndDate", getEndDate()).toString();
   }

   public int hashCode()
   {
      return new HashCodeBuilder().append(getDataId()).append(getConstellationName()).append(getBeginDate())
               .append(getEndDate()).toHashCode();
   }

   public boolean equals(Object obj)
   {
      if(obj instanceof Constellation == false) return false;
      if(this == obj) return true;
      Constellation other = (Constellation) obj;
      return new EqualsBuilder().append(getDataId(), other.getDataId())
               .append(getConstellationName(), other.getConstellationName()).append(getBeginDate(), other.getBeginDate())
               .append(getEndDate(), other.getEndDate()).isEquals();
   }
}
